package cn.lili.controller.feign.message;


import cn.lili.modules.message.entity.dos.MemberMessage;
import cn.lili.modules.message.service.MemberMessageService;
import cn.lili.modules.system.client.MemberMessageClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class MemberMessageFeignController implements MemberMessageClient {

    private final MemberMessageService messageService;

    @Override
    public Boolean editStatus(String status, String messageId) {
        return messageService.editStatus(status, messageId);
    }

    @Override
    public Boolean deleteMessage(String messageId) {
        return messageService.deleteMessage(messageId);
    }

    @Override
    public boolean save(List<MemberMessage> messages) {
        return messageService.save(messages);
    }
}
